import request from '@/utils/request'

export function list(level, perPcode) {
    return request({
        url: '/system/admin-permission/list',
        method: 'get',
        params: { 'level': level, 'perPcode': perPcode }
    });
}

export function put(data) {
    return request({
        url: '/system/admin-permission/put',
        method: 'post',
        data
    });
}

export function del(perCode) {
    return request({
        url: '/system/admin-permission/del',
        method: 'post',
        data: { "perCode": perCode }
    });
}